import type { RouteRecordRaw } from "vue-router";
import { Layout } from "jmash-core";
// 消息模版发送
export const smsSending = () =>
  import("@/views/sms/sms-template/SmsSending.vue");
// 应用配置邮件发送
export const emailSending = () =>
  import("@/views/sms/sms-app-config/emailSending.vue");
export const smsRoutes: RouteRecordRaw[] = [
  {
    path: "/sms/sms-template",
    component: Layout,
    meta: {
      hidden: true,
    },
    children: [
      {
        path: "/sms/sms-template/smsSending",
        component: smsSending,
        name: "smsSending",
        meta: {
          hidden: false,
          title: "发送短信",
        },
      },
    ],
  },
  {
    path: "/sms/sms-app-config",
    component: Layout,
    meta: {
      hidden: true,
    },
    children: [
      {
        path: "/sms/sms-app-config/emailSending",
        component: emailSending,
        name: "emailSending",
        meta: {
          hidden: false,
          title: "发送邮件",
        },
      },
    ],
  },
];
